﻿using System;
using System.Data;
using System.Data.SqlClient;
using System.Data.SqlTypes;
using Microsoft.SqlServer.Server;

[Serializable]
[Microsoft.SqlServer.Server.SqlUserDefinedType(Format.Native)]
public struct Volume : INullable {
    public override string ToString() {
        // Replace the following code with your code
        return "";
    }

    public bool IsNull {
        get {
            // Put your code here
            return m_Null;
        }
    }

    public static Volume Null {
        get {
            Volume h = new Volume();
            h.m_Null = true;
            return h;
        }
    }

    public static Volume Parse(SqlString s) {
        if (s.IsNull)
            return Null;
        Volume u = new Volume();
        // Put your code here
        return u;
    }

    // This is a place-holder method
    public string Method1() {
        //Insert method code here
        return "Hello";
    }

    // This is a place-holder static method
    public static SqlString Method2() {
        //Insert method code here
        return new SqlString("Hello");
    }

    // This is a place-holder field member
    public int var1;
    // Private member
    private bool m_Null;
}


